package com.dmyang.dao;

import com.dmyang.entity.HyArticle;
import com.dmyang.entity.HyArticleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface HyArticleMapper {
    int countByExample(HyArticleExample example);

    int deleteByExample(HyArticleExample example);

    int deleteByPrimaryKey(Integer articleId);

    int insert(HyArticle record);

    int insertSelective(HyArticle record);

    List<HyArticle> selectByExampleWithBLOBs(HyArticleExample example);

    List<HyArticle> selectByExample(HyArticleExample example);

    /**
     * 查询出最新发表的limit条记录
     * @param limit
     * @return
     */
    List<HyArticle> selectByPubTime(Integer limit);

    HyArticle selectByPrimaryKey(Integer articleId);

    int updateByExampleSelective(@Param("record") HyArticle record, @Param("example") HyArticleExample example);

    int updateByExampleWithBLOBs(@Param("record") HyArticle record, @Param("example") HyArticleExample example);

    int updateByExample(@Param("record") HyArticle record, @Param("example") HyArticleExample example);

    int updateByPrimaryKeySelective(HyArticle record);

    int updateByPrimaryKeyWithBLOBs(HyArticle record);

    int updateByPrimaryKey(HyArticle record);
}